package com.wwj.auction.admin.controller;


import com.wwj.auction.admin.entity.vo.SellerAuditDetailVo;
import com.wwj.auction.admin.service.SellerAuditDetailService;
import com.wwj.auction.common.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wwj
 * @since 2021-08-27
 */
@RestController
@RequestMapping("/admin/sellerAudit/detail")
public class SellerAuditDetailController {

    @Autowired
    private SellerAuditDetailService sellerAuditDetailService;

    /**
     * 处理卖家申请的审核结果
     *
     * @param sellerAuditDetailVo
     * @return
     */
    @PostMapping("/approval")
    public R approval(@RequestBody SellerAuditDetailVo sellerAuditDetailVo) {
        sellerAuditDetailService.approval(sellerAuditDetailVo);
        return R.ok().message("操作成功");
    }
}

